<?php

namespace Application\Model;

use Zend\Form\Annotation;

class SejourDate {
	public $idDate;
	public $sejourId;
	public $dateDebut;
	public $dateFin;
	public $prix;
	public $nbDispo;
	public $etat;

	public function exchangeArray($data)
	{
		$this->idDate = (isset($data['idDate'])) ? $data['idDate'] : null;
		$this->sejourId = (isset($data['sejourId'])) ? $data['sejourId'] : null;
		$this->dateDebut = (isset($data['dateDebut'])) ? $data['dateDebut'] : null;
		$this->dateFin = (isset($data['dateFin'])) ? $data['dateFin'] : null;
		$this->prix = (isset($data['prix'])) ? intval($data['prix']) : null;
		$this->nbDispo = (isset($data['nbDispo'])) ? intval($data['nbDispo']) : null;
		$this->etat = (isset($data['etat'])) ? $data['etat'] : null;
	}
}
